<div id='pagination'>
<?php
    if($pagination->setPaging($paging)):
	$leftArrow = $html->image("nav/arrowleft.gif", Array('height'=>15));
	$longleftArrow = $html->image("nav/arrowleft.gif", Array('height'=>15,'width'=>50));
	$rightArrow = $html->image("nav/arrowright.gif", Array('height'=>15));
	$longrightArrow = $html->image("nav/arrowright.gif", Array('height'=>15,'width'=>50));

    $prev = $pagination->prevPage($leftArrow,false);
    $prev = $prev?$prev:$leftArrow;
    $next = $pagination->nextPage($rightArrow,false);
    $next = $next?$next:$rightArrow;

    $first = $pagination->firstPage($longleftArrow,false);
    $last = $pagination->lastPage($longrightArrow,false);
    $pages = $pagination->pageNumbers(" | ",NULL,"","");

    echo $pagination->result()."<br>";
    echo $first." ".$prev." ".$pages." ".$next." ".$last."<br>";
    echo $pagination->resultsPerPage(NULL, ' ');
    endif;
?>
</div>